//
//  LOMedia.h
//  LegalObserver
//
//  Created by Roxanne Brittain on 11/1/11.
//  Copyright (c) 2011 Digifit. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MediaPlayer/MediaPlayer.h>

#define MEDIA_TYPE_PHOTO    1
#define MEDIA_TYPE_VIDEO    2

@interface LOMedia : NSObject
{
    int type;
    UIImage *image;
    UIImage *thumbnailImage;
    NSString *imageFilename;
    NSString *thumbnailImageFilename;
    NSURL *videoURL;
    NSDate *dateCreated;
    NSString *title;
    NSString *location;
    NSString *notes;
    int duration;
    MPMoviePlayerController *p;
}

@property int type;
@property int duration;
@property (nonatomic, retain) UIImage *image;
@property (nonatomic, retain) UIImage *thumbnailImage;
@property (nonatomic, retain) NSString *imageFilename;
@property (nonatomic, retain) NSString *thumbnailImageFilename;
@property (nonatomic, retain) NSURL *videoURL;
@property (nonatomic, retain) NSDate *dateCreated;
@property (nonatomic, retain) NSString *title;
@property (nonatomic, retain) NSString *location;
@property (nonatomic, retain) NSString *notes;

-(id)initWithImage:(UIImage *)i;
-(id)initWithVideoURL:(NSURL *)v;
-(void)saveImageFile;
-(void)saveThumbnailImageFile;
-(NSString*)stringDescription;
-(UIImage *)thumbnailImage;

@end
